package club.kingyin.commons.entity.file;

import club.kingyin.commons.enums.BlogEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (File)表实体类
 *
 * @author makejava
 * @since 2022-02-16 18:28:23
 */
@Data
@SuppressWarnings("serial")
public class File extends Model<File> {
    //下载路径
    private String path;
    //用户ID
    private Integer id;
    //标签
    private String tag;
    //时间戳上床时间
    private Long timestamp;
    //描述
    private String slogan;
    //状态
    private BlogEnum status;
    //大小
    private Integer size;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.path;
    }
}

